package com.test.auth_code;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * 授权，简化授权，密码，客户端，refresh token模式
 * http://localhost:8888/oauth/authorize?client_id=cms&client_secret=secret&response_type=code
 * */
@SpringBootApplication
@EnableResourceServer
public class AuthCodeApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthCodeApplication.class, args);
    }

}
